package com.extraxue.abstractFactory;

//继承自AbstractFactory，专门用来生产魔法时代的食物、武器、交通工具
public class MagicFactory extends AbstractFactory {
    @Override
    Food createFood() {
        return new Mushroom();
    }

    @Override
    Vehicle createVehicle() {
        return new Bloom();
    }

    @Override
    Weapon createWeapon() {
        return new MagicStick();
    }
}